package com.yami.shop.bean.app.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@ApiModel(value = "用户积分参数")
@Data
public class UserScoreRecordDto {

    @ApiModelProperty(value = "记录id", required = true)
    private Integer id;

    @ApiModelProperty(value = "记录类型 1支出 2收入", required = true)
    private Integer type;

    @ApiModelProperty(value = "数量", required = true)
    private Integer amount;

    @ApiModelProperty(value = "备注")
    private String mark;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
